Component({
  mixins: [],
  data: {
    second:3
  },
  props: {},
  didMount() {

      this.timer=setInterval(()=>{
        if(this.data.second>0){
          this.setData({
            second:this.data.second-1
          })
        }else{

          clearInterval(this.timer);

          this.$page.setData({
            state:0
          })
          
          this.jumpPage();
        }
      },1000)
   
  },
  didUpdate() {},
  didUnmount() {},
  methods: {

    jumpPage(){
      my.reLaunch({
        url: '../activityList/activityList'
      })
    }

  },
});
